package cn.wolfcode.luowowo.service.impl;

import cn.wolfcode.luowowo.article.domain.Ticket;
import cn.wolfcode.luowowo.article.mapper.TicketMapper;
import cn.wolfcode.luowowo.article.service.ITicketService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TicketServiceImpl implements ITicketService {
    @Autowired
    private TicketMapper ticketMapper;


    @Override
    public List<Ticket> listByTouristId(Long tid) {
        return ticketMapper.selectByTouristId(tid);
    }

    @Override
    public Ticket listById(Long tid) {
        return ticketMapper.selectByPrimaryKey(tid);
    }
}
